package com.bussiness.system.model;

import com.bussiness.system.dto.MyRoleAuthDto;

import java.util.Date;

public class MyRoleAuthEntity {
    private Long id;

    private Long authId;

    private Long roleId;

    private Long tenantId;

    private String roleAuthStatus;

    private Date gmtCreate;

    private Date gmtModified;

    public MyRoleAuthEntity(Long id, Long authId, Long roleId, Long tenantId, String roleAuthStatus, Date gmtCreate, Date gmtModified) {
        this.id = id;
        this.authId = authId;
        this.roleId = roleId;
        this.tenantId = tenantId;
        this.roleAuthStatus = roleAuthStatus;
        this.gmtCreate = gmtCreate;
        this.gmtModified = gmtModified;
    }

    public MyRoleAuthEntity() {
        super();
    }

    public MyRoleAuthEntity(MyRoleAuthDto myRoleAuthDto){
        this.roleId = Long.parseLong(myRoleAuthDto.getRoleId());
        this.authId = Long.parseLong(myRoleAuthDto.getAuthId());
        this.roleAuthStatus = myRoleAuthDto.getRoleAuthStatus();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getAuthId() {
        return authId;
    }

    public void setAuthId(Long authId) {
        this.authId = authId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Long getTenantId() {
        return tenantId;
    }

    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }

    public String getRoleAuthStatus() {
        return roleAuthStatus;
    }

    public void setRoleAuthStatus(String roleAuthStatus) {
        this.roleAuthStatus = roleAuthStatus == null ? null : roleAuthStatus.trim();
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }
}